//
// File purpose:
//   Global macros being needed by different classes
//

#pragma once

#include <stddef.h>

//
// macros
//
#if !defined(MakePtr)
#define MakePtr( cast, ptr, addValue )   (cast)( (DWORD)(ptr) + (DWORD)(addValue))
#endif

#define ZERO(strct) memset(&strct, 0, sizeof(strct));
#define ARRAY_ITEMS(name) sizeof(name) / sizeof(name[0])
#define printfnl printf( "\n" )